<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=divice-width,initial-scale=1.0">
	<title>函数默认参数</title>
</head>
<body>
<script type="text/javascript">
	//函数默认参数
	function sum(a=1,b=1){
		return a + b;
	}
	var result = sum(100,100);
	console.log(`result = ${result}`);
</script>
</body>
</html>